package GPA;

public class Course {
    private String courseId;    // 课程编号
    private String courseName;  // 课程名称
    private double credit;      // 学分

    public Course(String courseId, String courseName, double credit) {
        this.courseId = courseId;
        this.courseName = courseName;
        this.credit = credit;
    }

    // Getter 和 Setter 方法
    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public double getCredit() {
        return credit;
    }

    public void setCredit(double credit) {
        this.credit = credit;
    }
}
